import service from '@/utils/request.js';

// 分类list数据的接口get
export function categoryListApi(data) {
    return service({
        url: '/category/list',
        method: 'get',
        params: data
    })
}

// 删除数据/api/category/dele
export function categoryDeleApi(data) {
    return service({
        url: '/category/dele',
        method: 'get',
        params: data
    })
}

// 获取添加分类的级联菜单
export function categoryAddListApi(data) {
    return service({
        url: '/category/addlist',
        method: 'get',
        params: data
    })
}


// 添加分类的接口post
export function categoryAddApi(data) {
    return service({
        url: '/category/add',
        method: 'post',
        data
    })
}

// 编辑分类的接口post
export function categoryEditApi(data) {
    return service({
        url: '/category/edit',
        method: 'post',
        data
    })
}